<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>法律法规查询</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/meizzDate.js"></script>
</head>

<body>
<form method="post">
<table width="60%" align="center" class="bordernone">
  <tr>
    <td class="bg_blue" width="25%" align="right" >标题：</td>
    <td align="left"><input type="text" name="lawInfoTitle" value="${param.lawInfoTitle}"></td>
    <td class="bg_blue" width="25%" align="right" >类型：</td>
	<td ><select name="lawInfoType"><option value="">请选择</option><option value="0" <c:if test="${param.lawInfoType == '0'}">selected</c:if>>常用</option><option value="1" <c:if test="${param.lawInfoType == '1'}">selected</c:if>>最新</option></select></td>
  </tr> 
    <tr>
    <td class="bg_blue" align="right" >法律法规发表开始日期：</td>
    <td width="140"><input type="text" name="lawInfoStartDate" onclick="SelectDate(this,'yyyy-MM-dd')" readonly value="${param.lawInfoStartDate}"></td>
    <td class="bg_blue" align="right">法律法规发表结束日期：</td>
    <td width="140"><input type="text" name="lawInfoEndDate" onclick="SelectDate(this,'yyyy-MM-dd')" readonly value="${param.lawInfoEndDate}"></td>
  </tr> 
  <tr>
    <td class="nohover" colspan="4" align="center"><input class="buttonsearch" type="submit" value="查询">&nbsp; <input class="buttonreset" type="reset" value="重置" ></td>
  </tr>
</table>
 </form>


<table width="100%" border="1">
<tr><td colspan="8" class="nohover"><input type="button" class="buttonadd" onClick="javascript:window.location.href='<%=request.getContextPath()%>/LawInfo.do?method=toAdd'" value="添加"/></td></tr>
  <tr>
    <th width="120">标题</th>
    <th width="50">类型</th>
    <th width="120">发表人</th>
    <th width="120">发布日期</th>
    <th width="80">点击次数</th>
    <th width="120">发布状态</th>
    <th width="250">操作</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td><a href="<%=request.getContextPath()%>/LawInfo.do?method=detail&lawInfoId=${prod.lawInfoId}">${prod.lawInfoTitle}</a></td>
    <td><c:if test="${prod.lawInfoType == '0'}">常用</c:if><c:if test="${prod.lawInfoType == '1'}">最新</c:if></td>
    <td>${prod.persionFile.perFileName}</td>
    <td><fmt:formatDate pattern="yyyy-MM-dd" value="${prod.lawInfoTime}"/></td>
    <td>${prod.lawInfoPoint}</td>
    <td><c:if test="${prod.lawInfoState == '0'}">未发布</c:if><c:if test="${prod.lawInfoState == '1'}">已发布</c:if></td>
    <td><input type="button" class="buttonmodify" onClick="javascript:window.location.href='<%=request.getContextPath()%>/LawInfo.do?method=toUpdate&lawInfoId=${prod.lawInfoId}&page=${intPage}'" value="修改"/>
    <input type="button" class="buttondelete" onClick="javascript:if(confirm('确定删除该数据吗？'))javascript:window.location.href='<%=request.getContextPath()%>/LawInfo.do?method=delete&lawInfoId=${prod.lawInfoId}&page=${intPage}'" value="删除"/>
     <c:if test="${prod.lawInfoState == '0'}"><input type="button" class="buttonrevolve" onClick="javascript:window.location.href='<%=request.getContextPath()%>/LawInfo.do?method=lawPlaceTree&lawInfoId=${prod.lawInfoId}'" value="发布"/></c:if>
    </td>
</c:forEach>
  </tr>
  <tr>
    <td class="nohover" colspan="12" align="center">&nbsp;
    <form name="pageForm" method="post">
    <input type="hidden" name="lawInfoTitle" value="${param.lawInfoTitle}" action="<%=request.getContextPath()%>/LawInfo.do?method=list"/>
    <input type="hidden" name="lawInfoType" value="${param.lawInfoType}"/>
    <input type="hidden" name="lawInfoStartDate" value="${param.lawInfoStartDate}"/>
    <input type="hidden" name="lawInfoEndDate" value="${param.lawInfoEndDate}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
